<template>
	<view>

		<!--  手机顶部高度 -->
		<view class="navbar" :style="{height: systemBarHeight + 'px'}">
		</view>
		<view class="navbar">
			<uni-nav-bar @clickLeft="fh" :border="false" left-icon="left" title="新品上市" />
		</view>
		<view class="header">
			
		</view>
		
		<view class="newproduct">
			<view class="mouth">
				<image src="/static/biaoji.png" mode=""></image>
				<text class="mouth1">11</text>
				<text class="mouth2">1月</text>
			</view>
			<view class="product">
				<view class="productlist">
					<view class="productlist_item">
						<view class="productlist_item_lf">
							<image src="/static/logo.png" mode=""></image>
						</view>
						
						<view class="productlist_item_rg">
							<view class="productlist_item_rg_tit">
								<text>CyberDog仿生四足机器人（工程探索版）</text>
							</view>
							
							<view class="productlist_item_bom">
								<view class="productlist_item_bom_lf">
									<text class="type1">身高</text>
									<text class="type2">400mm</text>
								</view>
								<view class="productlist_item_bom_lf">
									<text class="type1">体重</text>
									<text class="type2">14kg</text>
								</view>
								
								<view class="productlist_item_bom_bt">
									<button type="default">去咨询</button>
								</view>
							</view>
						</view>
					</view>
					
					
					<view class="productlist_item">
						<view class="productlist_item_lf">
							<image src="/static/logo.png" mode=""></image>
						</view>
						
						<view class="productlist_item_rg">
							<view class="productlist_item_rg_tit">
								<text>CyberDog仿生四足机器人（工程探索版）</text>
							</view>
							
							<view class="productlist_item_bom">
								<view class="productlist_item_bom_lf">
									<text class="type1">身高</text>
									<text class="type2">400mm</text>
								</view>
								<view class="productlist_item_bom_lf">
									<text class="type1">体重</text>
									<text class="type2">14kg</text>
								</view>
								
								<view class="productlist_item_bom_bt">
									<button type="default">去咨询</button>
								</view>
							</view>
						</view>
					</view>
					<view class="productlist_item">
						<view class="productlist_item_lf">
							<image src="/static/logo.png" mode=""></image>
						</view>
						
						<view class="productlist_item_rg">
							<view class="productlist_item_rg_tit">
								<text>CyberDog仿生四足机器人（工程探索版）</text>
							</view>
							
							<view class="productlist_item_bom">
								<view class="productlist_item_bom_lf">
									<text class="type1">身高</text>
									<text class="type2">400mm</text>
								</view>
								<view class="productlist_item_bom_lf">
									<text class="type1">体重</text>
									<text class="type2">14kg</text>
								</view>
								
								<view class="productlist_item_bom_bt">
									<button type="default">去咨询</button>
								</view>
							</view>
						</view>
					</view>
				</view>
			</view>
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				systemBarHeight: 0,
				
				
			}
		},
		mounted() {
			this.getSysteminfo()
		},
		methods: {
			/* 手机顶部高度 */
			getSysteminfo() {
				uni.getSystemInfo({
					success: res => {
						this.systemBarHeight = res.statusBarHeight;
					}
				});
			},
		},
		fh() {
			uni.navigateBack({
				delta: 1 // 返回的页面层级，1表示返回上一页
			});
		},
	}
</script>

<style lang="scss" scoped>
	.header {
		background-image: url("");
		background-repeat: no-repeat;
		background-size: 100% 263.36rpx;
		height: 263.36rpx;
	}
	.newproduct{
		width: 750rpx;
		height: 1218rpx;
		background: #FFFFFF;
		margin-top: -30rpx;
		border-radius: 30rpx 30rpx 0rpx 0rpx; 
		
		.mouth{
			width: 91%;
			margin: auto;
			padding-top: 26rpx;
			>image{
				width: 19.08rpx;
				height: 19.08rpx;
			}
			.mouth1{
			
				font-family: DIN Alternate, DIN Alternate;
				font-weight: bold;
				font-size: 46rpx;
				color: #152034;
			
			}
			.mouth2{
				font-family: DIN Alternate, DIN Alternate;
				font-weight: bold;
				font-size: 22.9rpx;
				color: #7D8CA4;
			}
		}
	}
	.product {
		width: 88%;
		margin: auto;
	
		.productlist {
			.productlist_item {
				display: flex;
				margin-top: 24rpx;
				.productlist_item_lf {
					>image{
						width: 229rpx;
						height: 172rpx;
						border-radius: 0rpx 0rpx 0rpx 0rpx;
					}
				}
				.productlist_item_rg{
					margin-left: 30rpx;
					.productlist_item_rg_tit{
						font-family: PingFang SC, PingFang SC;
						font-weight: 400;
						font-size: 31rpx;
						color: #152034;
					}
					.productlist_item_bom{
						display: flex;
						align-items: center;
						margin-top: 17rpx;
						.productlist_item_bom_lf{
							display: flex;
							flex-direction: column;
							margin-right: 45rpx;
							.type1{
								font-family: PingFang SC, PingFang SC;
								font-weight: 400;
								font-size: 23rpx;
								color: #7D8CA4;
							}
							.type2{
								font-family: PingFang SC, PingFang SC;
								font-weight: 400;
								font-size: 23rpx;
								color: #45516B;
								margin-top: 10rpx;
							}
						}
						
						.productlist_item_bom_bt{
							margin-left: auto;
						}
					}
					
					
					
				}
	
			}
		}
	}
	.productlist_item_bom_bt button{
		width: 153rpx;
		height: 69rpx;
		background: #1677FF;
		border-radius: 38rpx 38rpx 38rpx 38rpx;
		font-family: PingFang SC, PingFang SC;
		font-weight: 400;
		font-size: 27rpx;
		color: #FFFFFF;
		display: flex;
		justify-content: center;
		align-items: center;
	}
</style>